package com.lw.smartdevice.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.lw.smartdevice.enums.CheckType;
import org.springframework.util.ObjectUtils;

public class SysScene implements CheckNull{

  private Long sceneId;
  private String sceneName;
  private Long createBy;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.util.Date createTime;
  private Long status;

  @Override
  public boolean isEmpty(CheckType type) {
    switch (type){
      case ADD:
        return ObjectUtils.isEmpty(sceneName);
    }
    return false;
  }

  public Long getSceneId() {
    return sceneId;
  }

  public void setSceneId(Long sceneId) {
    this.sceneId = sceneId;
  }


  public String getSceneName() {
    return sceneName;
  }

  public void setSceneName(String sceneName) {
    this.sceneName = sceneName;
  }


  public Long getCreateBy() {
    return createBy;
  }

  public void setCreateBy(Long createBy) {
    this.createBy = createBy;
  }


  public java.util.Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(java.util.Date createTime) {
    this.createTime = createTime;
  }


  public Long getStatus() {
    return status;
  }

  public void setStatus(Long status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "SysScene{" +
            "sceneId=" + sceneId +
            ", sceneName='" + sceneName + '\'' +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", status=" + status +
            '}';
  }
}
